package oop.ex2.enums;

import java.util.regex.Pattern;

public enum MethodTypes {
	STRING("^\\s*(String*)\\s+([A-Za-z]+\\w*)\\s*\\((.*)\\)\\s*\\{"),
	INT("^\\s*(int*)\\s+([A-Za-z]+\\w*)\\s*\\((.*)\\)\\s*\\{"),
	DOUBLE("^\\s*(double*)\\s+([A-Za-z]+\\w*)\\s*\\((.*)\\)\\s*\\{"),
	CHAR("^\\s*(char*)\\s+([A-Za-z]+\\w*)\\s*\\((.*)\\)\\s*\\{"),
	BOOLEAN("^\\s*(boolean*)\\s+([A-Za-z]+\\w*)\\s*\\((.*)\\)\\s*\\{"),
	VOID("^\\s*(void*)\\s+([A-Za-z]+\\w*)\\s*\\((.*)\\)\\s*\\{");
	
	
	private Pattern patt;
	
	private MethodTypes(String expression){
		patt=Pattern.compile(expression);
	}
	
	public Pattern getPattern(){
		return patt;
	}
}
